package com.yowasa.xiuxian.engine.battle.strategy;

import com.yowasa.xiuxian.annoations.BS;

public abstract class CalAbility implements BattleStrategy{
    @Override
    public int upAbility() {
        BS annotation = this.getClass().getAnnotation(BS.class);
        if (annotation == null) {
            return 0;
        }
        return annotation.upAbility();
    }

    @Override
    public int baseNeedTravel() {
        BS annotation = this.getClass().getAnnotation(BS.class);
        if (annotation == null) {
            return 0;
        }
        return annotation.needTravel();
    }
}
